﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Popup.ascx.vb" Inherits="Control_BanHang_Popup" %>
<script type='text/javascript'>
    function setSubjectParentValues(text) {

        window.parent.settxtSubjectValue(text);
        window.parent.tb_remove();
        return false; //prevent Submit
    }

    function setProductParentValues(ProductCode, Title, item) {

        window.parent.setProductValue(ProductCode, Title, item);
        window.parent.tb_remove();
        return false;
    }

	   
</script>
<asp:UpdatePanel ID="uplProduct" runat="server">
    <ContentTemplate>
        <div class="BoxField" style="background-color: #ffffff; padding-top: 8px;">
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="lblGroupname" CssClass="TextLabel" runat="server" Text="Nhập từ khóa: " /><span
                        class="fieldRequired"></span>
                </div>
                <div class="DivTextBox">
                    <asp:TextBox ID="txtFilter" CssClass="TextBox" runat="server" Text="" Width="208px" />
                    &nbsp;<asp:Button ID="btnFilter" runat="server" Text=" Lọc " CssClass="btn" />
                </div>
            </div>
            <div class="DivRow" style="padding-top: 10px">
                <div class="DivTextBox" style="float: left">
                    <asp:GridView ID="grdShow" runat="server" AutoGenerateColumns="False" EmptyDataText="{Không có dữ liệu}"
                        AllowPaging="false" Width='100%' BorderWidth="1px" CssClass="GridBorder">
                        <Columns>
                            <asp:TemplateField>
                                <HeaderStyle HorizontalAlign="Center" />
                                <ItemTemplate>
                                    <asp:RadioButton ID="chkItem" runat="server" />
                                </ItemTemplate>
                                <ItemStyle Width="5%" HorizontalAlign="Center" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="STT">
                                <ItemTemplate>
                                    <asp:Label runat="server" ID="lblSTT" Text=''></asp:Label>
                                </ItemTemplate>
                                <ItemStyle Width="5%" HorizontalAlign="Left" />
                            </asp:TemplateField>
                            <asp:BoundField DataField='Code' HeaderText='Mã Product'>
                                <ItemStyle Width='30%' />
                            </asp:BoundField>
                            <asp:BoundField DataField='Title' HeaderText='Tên'>
                                <ItemStyle Width='30%' />
                            </asp:BoundField>
                            <asp:BoundField DataField='SellPrice' HeaderText='Giá' DataFormatString={0:#,###}>
                                <ItemStyle Width='30%' />
                            </asp:BoundField>
                        </Columns>
                        <HeaderStyle Height="26px" HorizontalAlign="Left" CssClass="GridHeader" />
                        <RowStyle CssClass="GridRow" Height="23px" />
                        <AlternatingRowStyle CssClass="GridAlterRow" />
                        <PagerStyle CssClass="GridPaged" HorizontalAlign="Right" Height="23px" />
                        <PagerSettings Mode="Numeric" PageButtonCount="2" />
                        <EmptyDataRowStyle CssClass="GridTextEmpty" HorizontalAlign="Center" />
                    </asp:GridView>
                    <div>
                        <asp:Label ID="lblPage_Size" runat="server" Text="Số bản ghi trên trang:"></asp:Label>
                        <asp:DropDownList ID="drpPage_Size" runat="server" AutoPostBack="True" Width="70px"
                            CssClass="input_form">
                            <asp:ListItem Text="10" Value="10"></asp:ListItem>
                            <asp:ListItem Text="20" Value="20"></asp:ListItem>
                            <asp:ListItem Text="50" Value="50"></asp:ListItem>
                            <asp:ListItem Text="100" Value="100"></asp:ListItem>
                        </asp:DropDownList>
                        <asp:Label ID="lblTotal" runat="server"></asp:Label></div>
                    <div style="width: 100%">
                        <!--phan trang-->
                        <div id="results_resultsNavigationDiv" class="paginationEMP">
                            <ul>
                                <asp:LinkButton ID="lnkFirst" runat="server"></asp:LinkButton>
                                <asp:Repeater ID="rptPage" runat="server">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkTitle" CssClass="page_num" runat="server" OnClick="lnkTitle_Click"></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:Repeater>
                                <asp:LinkButton ID="lnkLast" runat="server"></asp:LinkButton>
                            </ul>
                        </div>
                        <asp:HiddenField ID="hidCount" Value="0" runat="server" />
                        <asp:HiddenField ID="hidIndex_page" Value="0" runat="server" />
                        <asp:HiddenField ID="hidCur_Page" Value="1" runat="server" />
                    </div>
                </div>
                <div class="DivLabel" style="float: left">
                    &nbsp;&nbsp;<br />
                    <br />
                    &nbsp;&nbsp;<br />
                    <br />
                    &nbsp;&nbsp;</div>
            </div>
        </div>
        <div style='display: none'>
            <asp:HiddenField ID="hidID" Value="0" runat="server" />
            <asp:TextBox ID="txtListIdProduct" runat="server" Text=""></asp:TextBox>
        </div>
    </ContentTemplate>
</asp:UpdatePanel>
